import { HTTP } from '../utils/http.js'

class Mycenter extends HTTP {

    
    // 查看用户信息
    my_center(objs) {
        return this.request({
        url: '/user/select_by_token',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    // 更改头像
    upd_head_portrait(objs) {
        return this.request({
        url: '/user/upd_head_portrait',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }

}

export { Mycenter }